﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CruiseLeftMenu.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.CruiseMenu.CruiseLeftMenu" %>
<div class="left-catalogy">
    <div class="left-catalogy-title">
        <asp:Label ID="lblType" runat="server"></asp:Label></div>
    <div class="left-catalogy-content">
        <asp:DataList ID="typeCruises" runat="server" DataSourceID="SqlDataSourceCruise">
            <itemtemplate>
                <div class="left-catalogy-item">
                    <asp:Image ID="Image1" runat="server" Height="30px" 
                        Width="41px" ImageUrl='<%# Eval("HinhAnh", "~/Images/HinhAnh/{0}") %>' />
                    <asp:HyperLink ID="HyperLink5" runat="server" Text='<%# Eval("TieuDe") %>'  NavigateUrl='<%# Eval("ID", "~/CruisesDetail.aspx?ID={0}&TL=").ToString() + Eval("TheLoaiID")  %>'
                     ></asp:HyperLink>
                </div>
                <br />
            </itemtemplate>
        </asp:DataList>
    </div>
</div>
<asp:SqlDataSource ID="SqlDataSourceCruise" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
    SelectCommand="SELECT * FROM [tblTour] WHERE ([TheLoaiID] = @TheLoaiID)">
    <selectparameters>
            <asp:QueryStringParameter Name="TheLoaiID" QueryStringField="TL" Type="Int32" />
        </selectparameters>
</asp:SqlDataSource>
